package com.escope.casemanager.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Administrator
 * 2024/3/19
 */
@Entity
@Table(name = "case_share")
@ApiModel("案例分享信息")
public class CaseShare extends BaseModel{
    @Column(name = "exam_id")
    @ApiModelProperty(value = "案例ID", example = "1")
    private Long examId;

    @Column(name = "token")
    @ApiModelProperty("分享token")
    private String token;

    @Column(name = "expire_date")
    @ApiModelProperty("到期日期")
    private Date expireDate;

    @Column(name = "dir_name")
    @ApiModelProperty("项目目录名称")
    private String dirName;

    @Column(name = "index")
    @ApiModelProperty("初始访问路径, 默认/index.html")
    private String index;

    @Column(name = "share_url")
    @ApiModelProperty("分享url")
    private String shareUrl;


    public Long getExamId() {
        return examId;
    }

    public void setExamId(Long examId) {
        this.examId = examId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public String getDirName() {
        return dirName;
    }

    public void setDirName(String dirName) {
        this.dirName = dirName;
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getShareUrl() {
        return shareUrl;
    }

    public void setShareUrl(String shareUrl) {
        this.shareUrl = shareUrl;
    }
}
